﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using DailyDiet.Models;
using DailyDiet.Models.VO;
using Xamarin.Forms;

namespace DailyDiet.Converters
{
    public class ItemTappedEventArgsToRecDietListConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter,
            CultureInfo culture) =>
            (value as ItemTappedEventArgs)?.Item as RecDietViewObject;

        public object ConvertBack(object value, Type targetType, object parameter,
            CultureInfo culture)
        {
            throw new NotImplementedException();
        }

    }

        
}
